package com.sanjiahantang.youjiaclient.module.login.views.impl;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.sanjiahantang.youjiaclient.R;
import com.sanjiahantang.youjiaclient.base.BaseMvpActivity;
import com.sanjiahantang.youjiaclient.module.common.views.impl.MainActivity;
import com.sanjiahantang.youjiaclient.module.login.presenters.LoginPresenter;
import com.sanjiahantang.youjiaclient.module.login.views.LoginView;
import com.sanjiahantang.youjiaclient.module.decorate.views.impl.DecorateActivity;



/**
 * Created by zy on 2017/10/23.
 */

public class RegisterSuccessActivity extends BaseMvpActivity<LoginView,LoginPresenter> implements LoginView,View.OnClickListener{
    private TextView  txtToMain;
    private LinearLayout tv_cmitForm;
    @Override
    public void showProgress() {
        super.showProgress($this);
    }

    @Override
    public LoginPresenter initPresenter() {
        return new LoginPresenter();
    }

    @Override
    public void initView() {
        setContentView(R.layout.activity_register_success);
       findViewById(R.id.llFooter).setOnClickListener(this);
       findViewById(R.id.btnLogin).setOnClickListener(this);

    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.llFooter:
                startActivity(new Intent(this,MainActivity.class));
                finish();
                break;
            case R.id.btnLogin:
                startActivity(new Intent(this, DecorateActivity.class));
                finish();
                break;
        }

    }
}
